<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    body>div{
      background-color: #000;
      color: white;
    }
    body>div>p:last-child{
      color:#000;
    }
  </style>
</head>
<body>
<div>
  
  <div>
    <p>dfrg</p>
    <span>1</span>
    <span>2</span>
    <span>3</span>
    <span>4</span>
    <span>5</span>
    <span>6</span>
    <span>7</span>
    <span>8</span>
    <span>9</span>
  </div>
  <div>dffhf</div>
  <div>fewfgrg</div><p>first-child</p>
</div>
</body>
</html>